// 版本信息工具
export const APP_VERSION = '2.0.0';
export const BUILD_DATE = new Date().toISOString().split('T')[0];

export interface VersionInfo {
  version: string;
  buildDate: string;
  environment: 'development' | 'production';
}

export const getVersionInfo = (): VersionInfo => {
  return {
    version: APP_VERSION,
    buildDate: BUILD_DATE,
    environment: import.meta.env.PROD ? 'production' : 'development'
  };
};

export const getVersionString = (): string => {
  const info = getVersionInfo();
  return `v${info.version} (${info.buildDate})`;
};

export const getFullVersionString = (): string => {
  const info = getVersionInfo();
  return `AIDE v${info.version} - ${info.environment === 'production' ? '生产版' : '开发版'} (${info.buildDate})`;
};
